<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<div class="desplegable">
		<?php  $this->Form->new_menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="mejoramientoAdecuaciones form">
<?php echo $this->Form->create('MejoramientoAdecuacione');?>
	<fieldset>
 		<legend><?php __('Agregar Mejoramiento de adecuaciones'); ?></legend>	
	<table  id="myTable" cellpadding="0" cellspacing="0">
	 		<tr>										
				<th class="actions"><?php __('NOMBRE INSTITUCION MADRE');?></th>
				<th class="actions"><?php __('INTRAMUROS');?></th>
				<th class="actions"><?php __('EXTRAMUROS');?></th>
				<th class="actions"><?php __('ADECUACIONES LOCATIVAS');?></th>
				<th class="actions"><?php __('COSTOS');?></th>						
			</tr>			
			<tr>					
			<?php
					echo $this->Form->input('fecha');	
										
					foreach($nombre_iem2 as $iem){							
						if($iem != NULL){ ?>								
						<td><?php echo $this->Form->label($iem);?></td>
						<?php echo $this->Form->input(null, array('type'=>'hidden', 'name'=>'data[nombre_iem]['.$iem.']',
															  'id'=>'data[nombre_iem]['.$iem.']','value'=>$iem));?>
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[intramuro]['.$iem.']', 
														'name'=>'data[intramuro]['.$iem.']', 'class' => 'text_asistencia', 
														'type'=>'text'))?></td>
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[extramuro]['.$iem.']', 
														'name'=>'data[extramuro]['.$iem.']', 'class' => 'text_asistencia', 
														'type'=>'text'))?></td>
						<td><?php echo $this->Form->textarea(null, array('label'=>'', 'id'=>'data[adecuaciones]['.$iem.']', 
														'name'=>'data[adecuaciones]['.$iem.']', 'class' => 'text_kit', 
														'type'=>'text'))?></td>
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[costos]['.$iem.']', 
														'name'=>'data[costos]['.$iem.']', 'class' => 'text_kit', 
														'type'=>'text'))?></td>	
						<?php  } ?>										
			</tr>
			<?php } ?>
		</table>
	</fieldset>
<?php echo $this->Form->input('zona', array('type'=>'hidden', 'value'=>$zona));?>
<?php echo $this->Form->end(__('Guardar', true));?>
</div>